package com.bocai.grainshop.order.feign;

import com.bocai.common.utils.R;
import com.bocai.grainshop.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Component
@FeignClient("grainshop-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getAddressByMemberId(@PathVariable("memberId") Long memberId);

    @RequestMapping("/member/member/info/{id}")
    R info(@PathVariable("id") Long id);
}
